package com.gastronomy.service;

import java.util.List;
import java.util.Map;

import com.gastronomy.entity.InformationEntity;
import com.gastronomy.entity.User;

public interface InformationService {
	/**
	 * 获取所有的热门资讯
	 * @param currentPage  当前页码
	 * @param pageSize  每页的条数
	 * @return
	 */
	public List<InformationEntity> listInformations(Integer currentPage ,Integer pageSize);

	/**
	 * 根据id查找一篇资讯
	 * @param informationId  资讯id
	 * @return 
	 */
	public InformationEntity getInformationById(String informationId);
	/**
	 * 更新阅读次数
	 * @param informationEntity
	 */
	public void updateInformationFocuse(InformationEntity informationEntity);

	/**
	 * 保存资讯
	 * @param user
	 * @param informationEntity
	 * @return
	 */
	public Map<String, String> saveInformation(User user,
			InformationEntity informationEntity);
}
